package temaihui.daimaitemai;

import android.app.Application;

import com.alibaba.nb.android.trade.AliTradeSDK;
import com.alibaba.nb.android.trade.callback.AliTradeInitCallback;

/**
 * Created by sun on 16/8/14.
 */
public class TmhApplication extends Application {
    @Override
    public void onCreate() {
        super.onCreate();

        AliTradeSDK.asyncInit(this, "23256641", new AliTradeInitCallback() {
            @Override
            public void onSuccess() {
                //初始化成功，设置相关的全局配置参数

                // ...
            }

            @Override
            public void onFailure(int code, String msg) {
                //初始化失败，可以根据code和msg判断失败原因，详情参见错误说明
            }
        });
    }

}
